﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script type="text/javascript">


        function login()
        {
            
            debugger;
            var name = document.getElementById("txtName").value;
            var pwd=document.getElementById("txtPWD").value;
            if (name == "" || pwd == "")
            {
                alert("请输入用户名和密码");
                return;
            }

        }

        var btn = document.getElementById("btnLogin");
    </script>
</head>
<body>
    <form id="form1" ruat="server">
    <div>
     <input type="text" id="txtName" value ="" placeholder="请输入用户名" />
        <input type="text" value ="" id="txtPWD" placeholder="请输入密码" /><br />
        <input  type="button" value ="登录" id="btnLogin" onclick="login()"/> 
     </div>
    </form>
</body>
</html>
